package com.jiaming.restaurant.api.restaurantgoods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiaming.restaurant.api.goods.bean.entity.Goods;
import com.jiaming.restaurant.api.restaurantgoods.bean.entity.RestaurantGoods;
import com.jiaming.restaurant.api.restaurantgoods.bean.vo.RestGoodsVO;
import com.jiaming.restaurant.api.restaurantgoods.bean.vo.RestaurantGoodsVO;

import java.util.List;

/**
 * @author dragon
 * @create 2020-12-28 17:33
 */
public interface IRestaurantGoodsService extends IService<RestaurantGoods> {
    List<Goods> list(RestaurantGoodsVO restaurantGoodsVO);
    boolean removeByGoodsIds(List<Integer> goodsIds);
    RestaurantGoods getByRestaurantIdAndGoodsId(Integer restaurantId, Integer goodsId);
    RestaurantGoods getByRestaurantIdAndGoodsIdAndId(Integer id, Integer restaurantId, Integer goodsId);

    List<RestGoodsVO> getByRestId(RestaurantGoodsVO restaurantGoodsVO);

}
